package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_cont_prod database table.
 * 
 */
@Entity
@Table(name="bme_cont_prod")
@NamedQuery(name="BmeContProd.findAll", query="SELECT b FROM BmeContProd b")
public class BmeContProd implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private BigDecimal amount;

	@Column(name="AMOUNT_APPLY")
	private BigDecimal amountApply;

	@Column(name="AMOUNT_INVOICED")
	private BigDecimal amountInvoiced;

	@Column(name="AMOUNT_PAYED")
	private BigDecimal amountPayed;

	@Column(name="AMOUNT_RATE")
	private BigDecimal amountRate;

	@Column(name="AMOUNT_UNPAYED")
	private BigDecimal amountUnpayed;

	private String area;

	@Column(name="CONT_NAME")
	private String contName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	private String operator;

	private BigDecimal price;

	private BigDecimal quantity;
	


	@Column(name="SUPPLIER_ID")
	private String supplierId;
	
	private String remarks;

	@Column(name="SALE_QUANTITY")
	private BigDecimal saleQuantity;

	@Column(name="SALE_RATE")
	private BigDecimal saleRate;

	//bi-directional many-to-one association to BmeContract
	@ManyToOne
	@JoinColumn(name="CONT_ID")
	private BmeContract bmeContract;

	//bi-directional many-to-one association to BmeMaterial
	@ManyToOne
	@JoinColumn(name="MID")
	private BmeMaterial bmeMaterial;

	private String speci;

	@Column(name="PROCESS_QUANTITY")
	private BigDecimal processQuantity;

	@Column(name="PROCESS_SPECI")
	private String processSpeci;
	
	@Column(name="PROCESS_TECK")
	private String processTeck;

	
	public String getSpeci() {
		return speci;
	}

	public void setSpeci(String speci) {
		this.speci = speci;
	}

	public BigDecimal getProcessQuantity() {
		return processQuantity;
	}

	public void setProcessQuantity(BigDecimal processQuantity) {
		this.processQuantity = processQuantity;
	}

	public String getProcessSpeci() {
		return processSpeci;
	}

	public void setProcessSpeci(String processSpeci) {
		this.processSpeci = processSpeci;
	}

	public String getProcessTeck() {
		return processTeck;
	}

	public void setProcessTeck(String processTeck) {
		this.processTeck = processTeck;
	}
	
	public BmeContProd() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getAmountApply() {
		return this.amountApply;
	}

	public void setAmountApply(BigDecimal amountApply) {
		this.amountApply = amountApply;
	}

	public BigDecimal getAmountInvoiced() {
		return this.amountInvoiced;
	}

	public void setAmountInvoiced(BigDecimal amountInvoiced) {
		this.amountInvoiced = amountInvoiced;
	}

	public BigDecimal getAmountPayed() {
		return this.amountPayed;
	}

	public void setAmountPayed(BigDecimal amountPayed) {
		this.amountPayed = amountPayed;
	}

	public BigDecimal getAmountRate() {
		return this.amountRate;
	}

	public void setAmountRate(BigDecimal amountRate) {
		this.amountRate = amountRate;
	}

	public BigDecimal getAmountUnpayed() {
		return this.amountUnpayed;
	}

	public void setAmountUnpayed(BigDecimal amountUnpayed) {
		this.amountUnpayed = amountUnpayed;
	}

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getSupplierId() {
		return this.supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	public String getContName() {
		return this.contName;
	}

	public void setContName(String contName) {
		this.contName = contName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getQuantity() {
		return this.quantity;
	}

	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BigDecimal getSaleQuantity() {
		return this.saleQuantity;
	}

	public void setSaleQuantity(BigDecimal saleQuantity) {
		this.saleQuantity = saleQuantity;
	}

	public BigDecimal getSaleRate() {
		return this.saleRate;
	}

	public void setSaleRate(BigDecimal saleRate) {
		this.saleRate = saleRate;
	}

	public BmeContract getBmeContract() {
		return this.bmeContract;
	}

	public void setBmeContract(BmeContract bmeContract) {
		this.bmeContract = bmeContract;
	}

	public BmeMaterial getBmeMaterial() {
		return this.bmeMaterial;
	}

	public void setBmeMaterial(BmeMaterial bmeMaterial) {
		this.bmeMaterial = bmeMaterial;
	}

}